package cn.scm.server.multistage.controller;

import cn.scm.server.multistage.entity.BizVirtualProperty;
import cn.scm.server.multistage.service.BizVirtualPropertyService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 虚拟资产表(BizVirtualProperty)表控制层
 *
 * @author makejava
 * @since 2020-09-23 20:53:33
 */
@RestController
@RequestMapping("bizVirtualProperty")
public class BizVirtualPropertyController {
    /**
     * 服务对象
     */
    @Resource
    private BizVirtualPropertyService bizVirtualPropertyService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BizVirtualProperty selectOne(String id) {

        return this.bizVirtualPropertyService.queryById(id);
    }

}